// css 初始化
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

/* 声明字体*/
@font-face {
    font-family: electronicFont;
    src: url(../font/DS-DIGIT.TTF);
}

body {
    height: 1.15;
    background: url(../images/bg.jpg) no-repeat top center;

}

// 头部
header {
    position: relative;
    height: 1.25rem;
    background: url(../images/head_bg.png) no-repeat;
    background-size: 100% 100%;

    h1 {
        font-size: .475rem;
        text-align: center;
        line-height: 1rem;
        color: #fff;

    }

    .showTime {
        position: absolute;
        top: 0;
        right: .375rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: .25rem;
        line-height: .9375rem;
    }
}

// 页面主体盒子
.mainbox {
    // 小于1024就不会再缩放了 这里如果用rem就会一起缩放
    min-width: 1024px;
    max-width: 1920px;
    margin: 0 auto;
    padding: .125rem .125rem 0;
    display: flex;

    .column {
        flex: 3;

        &:nth-child(2) {
            flex: 5;
            margin: 0 0.125rem 0.1875rem;
            overflow: hidden;

        }
    }

    .panel {
        position: relative;
        height: 3.875rem;
        border: 1px solid rgba(25, 186, 139, 0.17);
        background: url(../images/line\(1\).png)  rgba(255, 255, 255, 0.03);
        padding: 0 .1875rem .5rem;
        margin-bottom: .1875rem;

        &::before {
            position: absolute;
            top: 0;
            left: 0;
            content: "";
            width: 10px;
            height: 10px;
            border-top: 2px solid #02a6b5;
            border-left: 2px solid #02a6b5;
        }

        &::after {
            position: absolute;
            top: 0;
            right: 0;
            content: "";
            width: 10px;
            height: 10px;
            border-top: 2px solid #02a6b5;
            border-right: 2px solid #02a6b5;
        }

        .panel-footer {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;

            &::before {
                position: absolute;
                bottom: 0;
                left: 0;
                content: "";
                width: 10px;
                height: 10px;
                // 这里2px很小，可以不用rem
                border-bottom: 2px solid #02a6b5;
                border-left: 2px solid #02a6b5;
            }

            &::after {
                position: absolute;
                bottom: 0;
                right: 0;
                content: "";
                width: 10px;
                height: 10px;
                border-bottom: 2px solid #02a6b5;
                border-right: 2px solid #02a6b5;
            }
        }

        h2 {
            height: .6rem;
            color: #fff;
            font-size: .25rem;
            line-height: 0.6rem;
            text-align: center;
            font-weight: 400;
            a {
                color: #fff;
                text-decoration: none;
                margin: 0 0.125rem;
              }
        }

        .chart {
            height: 3rem;
            // background-color: #fff;
        }
    }
}

// 中间的no数字模块
.no {
    background: rgba(101, 132, 226, 0.1);
    padding: 0.1875rem;

    .no-hd {
        position: relative;
        border: 1px solid rgba(25, 186, 139, 0.17);

        &::before {
            position: absolute;
            top: 0;
            left: 0;
            content: "";
            width: 30px;
            height: 10px;
            border-top: 2px solid #02a6b5;
            border-left: 2px solid #02a6b5;
        }

        &::after {
            position: absolute;
            bottom: 0;
            right: 0;
            content: "";
            width: 30px;
            height: 10px;
            border-right: 2px solid #02a6b5;
            border-bottom: 2px solid #02a6b5;
        }

        ul {
            display: flex;

            li {
                position: relative;
                flex: 1;
                line-height: 1rem;
                font-size: 0.875rem;
                color: #ffeb7b;
                text-align: center;
                font-family: "electronicFont";

                // 中间的竖线
                &::after {
                    content: "";
                    position: absolute;
                    top: 25%;
                    right: 0;
                    height: 50%;
                    width: 1px;
                    background: rgba(255, 255, 255, 0.2);
                }
            }
        }
    }

    .no-bd {
        ul {
            display: flex;

            li {
                flex: 1;
                text-align: center;
                color: rgba(255, 255, 255, 0.7);
                font-size: 0.225rem;
                height: 0.5rem;
                line-height: 0.5rem;
                padding-top: 0.125rem;
            }
        }
    }
}

.map {
    position: relative;
    height: 10.125rem;

    // 球体
    .map1 {
        // 水平垂直居中
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 6.475rem;
        height: 6.475rem;
        background: url(../images/map.png);
        background-size: 100% 100%;
        opacity: .3;


    }

    // 旋转球体
    .map2 {
        // 水平垂直居中
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8.0375rem;
        height: 8.0375rem;
        background: url(../images/lbx.png);
        background-size: 100% 100%;
        opacity: .6;
        // 动画
        animation: rotate1 15s linear infinite;
    }

    // 旋转箭头
    .map3 {
        // 水平垂直居中
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 7.075rem;
        height: 7.075rem;
        background: url(../images/jt.png);
        background-size: 100% 100%;
        opacity: .6;
        // 动画
        animation: rotate2 10s linear infinite;
    }
    // 这里不加的话显示不出来map
    .chart {
        position: absolute;
        top: 0;
        left: 0;
        // background-color: pink;
        width: 100%;
        height: 10.125rem;
    }
    // 球体旋转动画
    @keyframes rotate1 {
        from {
            // translate这里的translate不能变,所以还要再加
            transform: translate(-50%, -50%) rotate(0deg);

        }

        to {
            transform: translate(-50%, -50%) rotate(360deg);

        }
    }

    // 箭头旋转动画 逆时针
    @keyframes rotate2 {
        from {
            // translate这里的translate不能变,所以还要再加
            transform: translate(-50%, -50%) rotate(0deg);

        }

        to {
            transform: translate(-50%, -50%) rotate(-360deg);

        }
    }
}
/* 约束屏幕尺寸 */
@media screen and (max-width: 1024px) {
    html {
      font-size: 42px !important;
    }
  }
  @media screen and (min-width: 1920px) {
    html {
      font-size: 80px !important;
    }
  }
  